package com.spider.ask120.service;

import org.jdiy.core.Dao;

import com.spider.utils.CommonUtil;

public class BaseService {
	public static Dao dao = getDao();
	public static Dao getDao(){
		if (null == dao) {
			try {
				return CommonUtil.getDao();
			} catch (Exception e) {
				e.printStackTrace();
			} 
		}
		return dao;
	}
}
